import time
from datetime import datetime


while True:
    nian = datetime.now().year
    yue = datetime.now().month
    ri = datetime.now().day
    shi = datetime.now().hour
    fen = datetime.now().minute
    miao = datetime.now().second
    print(f"{nian}年{yue}月{ri}日 {fen}时{shi}分{miao}秒")
    time.sleep(1)